<?php
include 'classes/tools.class.php';

$txt = '[b]asd[/b]';
$bb = Tools::bbcode($txt);
$cc = Tools::html($bb);
echo $txt;
echo '<br>';
echo $bb;
echo '<br>';
echo $cc;
?>